// model功能： 1.连接数据库  2.暴露接口
const { user } = require('../db/index');

const signup = async({ username, password }) => {
    return user.signup({ username, password });
}

const signin = async({ username, password }) => {
    return user.signin({ username, password });
}

module.exports = {
    signup,
    signin
}